package com.monlyu.action.system;

import com.monlyu.action.PageAction;
import com.monlyu.bean.Pages;
import com.monlyu.bo.RoleBo;
import com.monlyu.vo.Role;

/********************************************************************************
 * 
 * <b>功能描述☞</b>显示所有的系统角色 <br>
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>monlyu<br>
 * <b>文件路径☞</b>com.monlyu.action.system.ListRoleAction.java<br>
 * <b>开发日期☞</b>2010-1-12 <br>
 * 
 * @author monlyu
 * @since JDK 5
 * @version 1.0.5
 * 
 ********************************************************************************/
public class ListRoleAction extends PageAction {

	private RoleBo roleBo;
	private Pages<Role> roles;

	public Pages<Role> getRoles() {
		return roles;
	}

	public void setRoles(Pages<Role> roles) {
		this.roles = roles;
	}

	public void setRoleBo(RoleBo roleBo) {
		this.roleBo = roleBo;
	}

	@Override
	public String execute() throws Exception {
		roles = roleBo.findRoles(getDefPage());
		return view("listRole.jsp");
	}
}
